package person.tanjinfu.jaegerexample;

import org.springframework.stereotype.Repository;

import java.util.Random;
import java.util.concurrent.TimeUnit;

@Repository
public class JaegerExampleDao {
    private Random random = new Random();

    public String readDb() {

        try {
            TimeUnit.MILLISECONDS.sleep(random.nextInt(1000));// 模拟访问 database
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return "something from db";

    }


}
